<!DOCTYPE html>
<html>
<head>
	<title>工作流图</title>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
	<link rel="stylesheet" href="__PUBLIC__/Admin/css/min.css" />
	<link rel="stylesheet" href="__PUBLIC__/Admin/content/style.css" />

	<!-- jQuery AND jQueryUI -->
	<script type="text/javascript" src="__PUBLIC__/Admin/js/libs/jquery/1.6/jquery.min.js"></script>
	<script type="text/javascript" src="__PUBLIC__/Admin/js/libs/jqueryui/1.8.13/jquery-ui.min.js"></script>
	<script type="text/javascript" src="__PUBLIC__/Admin/js/min.js"></script>
	<script type="text/javascript" src="__PUBLIC__/Admin/content/main.js"></script>
</head>
<body>
<style>
table{
	/* border:5px red solid; */
	margin:0 auto;
	width:70%;
}
tr{
	
}
td{
	height:100px;
	width:150px;
	padding:20px;
}
td div{
	height:100px;
	width:150px;
	padding:10px;
	font-size:12px;
	line-height:100px;
}
.status0{
	background-color:green;
	border-radius:50%;	
	border:1px gray solid;
}
.status1{
	background-color:#6495ED;
	border-radius:0%;	
	border:1px gray solid;	
}
.status2{
	background-color:#6495ED;
	border-radius:0%;	
	border:1px gray solid;	
}
.status3{
	background-color:#6495ED;
	border-radius:50%;	
	border:1px gray solid;	
}
</style>
   <div class="title" style="text-align:center">
	<?php
		$id = I('get.id');
			if($id){
		?>
		{$object['name']}
	<?php
		}
		?>
	</div>
	<?php
		$id = I('get.id');
			if($id){
				echo "<input type='hidden' name='id' value='".$id."'/>";
			}
		?>
	<table border="1">
		<?php 
			$nowNode = null;
		?>
		<volist name='nodelist' id='vo'>
			<?php //找到创建节点
				if($vo[type]==0){
					$nowNode = $vo;
					break;
				}
			?>
		</volist>
		<td>
			<?php
				if($nowNode[type]==0){
						echo '<div class=status0>';
					}else if($nowNode[type]==1){
						echo '<div class=status1>';
					}else if($nowNode[type]==2){
						echo '<div class=status3>';
					}else if($nowNode[type]==3){
						echo '<div class=status3>';
					}
							?>
				<a href="#" title="
						节点id:{$nowNode.id}<br>
						节点名称:{$nowNode.name}<br>
						节点类型:{$nowNode.type}<br>
						操作者类型:{$nowNode.handlertype}<br>
						操作者对象:{$nowNode.handlerobject}<br>">
						节点名称:{$nowNode.name}<br>
				</a>
			</div>
		</td>
		<volist name='nodelist' id='vo'>
			<volist name='nodelist' id='vo2'>
				<?php
				//循环节点列表,找到下个节点信息
					if($vo2[id]==$nowNode[nextnodeid]){
						$nowNode = $vo2;
						break;
					}
				?>
			</volist>
			<td>
				<?php
					if($nowNode[type]==0){
						echo '<div class=status0>';
					}else if($nowNode[type]==1){
						echo '<div class=status1>';
					}else if($nowNode[type]==2){
						echo '<div class=status3>';
					}else if($nowNode[type]==3){
						echo '<div class=status3>';
					}
							?>
					<a href="#" title="
							节点id:{$nowNode.id}<br>
							节点名称:{$nowNode.name}<br>
							节点类型:{$nowNode.type}<br>
							操作者类型:{$nowNode.handlertype}<br>
							操作者对象:{$nowNode.handlerobject}<br>">
							节点名称:{$nowNode.name}<br>
					</a>
				</div>
			</td>
			<?php//找到归档节点
				if($nowNode[type]==2){
					break;
				}
			?>
		</volist>
	</table>
</body>
</html>